<?php

namespace App\Datalog\Users;

use App\Datalog\Users\UserSet;
use App\Models\UserExtend;

class PayUserSet extends UserSet
{
    public function addSet(UserExtend $extend)
    {
        $params = [
            'total_pay_amount' => $extend->total_pay_amount,
            'total_pay_num'    => $extend->total_pay_num,
            'first_pay_orderid' => $extend->first_pay_orderid,
            'first_pay_time'   => $extend->first_pay_time,
            'first_pay_amount' => $extend->first_pay_amount,
        ];
        $this->setVal($extend->user_id, $extend->last_login_time, $params);
    }
}
